#ifndef NOTE_H
#define NOTE_H

#include "BaseTypes.h"

class Note {
public:
	double pitch_start_angle;
	double pitch_end_angle;

	Size2 note_duration;

	Color note_color;

	Note(
		size_t tracks_num,
		size_t track_index,
		size_t pitch_range,
		size_t pitch_min,
		size_t pitch,
		size_t velocity,
		Size2 duration,
		Color color
	);

private:
	static Color _adjust_color(Color raw_color, size_t velocity);
	static uint8_t _adjust_color_value(uint8_t raw_color_value, uint8_t velocity);
};
#endif
